$(function(){
	activeNav($("#sales-product"));
});

function deleteByIds(){
	var ids = new Array();
	$(".table input[name=id]:checked").each(function(){
		var id = $(this).val();
		ids.push(id);
	});
	if(ids.length==0){
		$.alert({message:"请先勾选记录再批量删除！"});
	}else{
		$.confirm({
			message:"确定要删除这些记录？",
			callback:function(){
				locationHref(ctx + "/admin/product/delete/"+ids);
			}
		});
	}
}

function deleteById(id){
	$.confirm({
		message:"确定要删除？",
		callback:function(){
			locationHref(ctx + "/admin/product/delete/"+id);
		}
	});
}
